<?php

/**
 * 报名付费后回调处理
 * File Name：GoodsBm.php
 * File Encoding：UTF-8
 * File New Time：2014-6-4 14:43:44
 * Author：水平凡
 * Mailbox：admin@abc3210.com
 */
class GoodsBm extends Callback {

    public function run() {
        //更新对应的商品的支付状态
        if ($this->data['goods_bm_id']) {
            $data = GoodsBmModel::model()->findByPk($this->data['goods_bm_id']);
            if (!empty($data)) {
                $data->pay_status = 2;
                $data->save(false);
            }
        }
    }

}
